<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"
	+request.getServerName()+":"
	+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
<title>学科管理系统</title>   
<base href="<%=basePath%>">  
<s:include value="../common/source.jsp"></s:include>	
</head>
<body>
  <script type="text/javascript">
		
	var message = '<s:property value="flag" />';
	  if(message!=null&&message!="")
	   {
	   		if(message=="succ") {
	   		alert("添加成功!")
	   		} else {
	   		alert("该用户工号已经存在，请核对后重新添加!")
	   		}			 
	   		
	   }
		
		</script>
<!-- 用户密码修改开始 -->
<div class="body">
 <div class="content ui-sortable">
          <div class="list">
         	 添加教师
          	 </div>
          	 </div>
          	 <br/> 
          	  <br/> 
          	   <hr style="background-color:#cfe1f9;height:1px;"/>
	<form class="sui-form form-horizontal sui-validate" 
		action="admin/AddTeacherAction.action" method="post"
		enctype="multipart/form-data">
			<table class="sui-table table-vzebra  table0" >
			<tbody>
			<tr>
				<td>教师姓名</td>
				<td> 
					<input type="text" 
						class="input-large" 
						name="teacher.name"						
						data-rules="required">
				</td>
			</tr>
			<tr>
				<td>教师工号</td>
				<td> 
					<input type="text" 
						class="input-large" 
						name="teacher.user" 					
						data-rules="required">
				</td>
			</tr>
			<tr>
                        <td>教师方向</td>
                         <td><div class="controls ">
            <span class="sui-dropdown dropdown-bordered select">
              <span class="dropdown-inner">
                <a id="drop4" role="button" data-toggle="dropdown" href="#" class="dropdown-toggle">
                  <input class="input-large" type="hidden" name="teacher.direction"><i class="caret"></i><span>选择方向</span>
                </a>
                <ul id="menu4" role="menu" aria-labelledby="drop4" class="sui-dropdown-menu" name="teacher.direction">
                 <li role="presentation" name="paper.include"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=0>控制理论与控制工程</a></li>
				  <li role="presentation" class="divider"></li>
                  <li role="presentation" name="paper.include"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=1>机器人系统与智能装备</a></li>
                  <li role="presentation" class="divider"></li>
                  <li role="presentation" name="paper.include"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=2>模式识别与智能系统</a></li>
                  <li role="presentation" class="divider"></li>
                  <li role="presentation" name="paper.include"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=3>综合自动化与智能交通</a></li>
                </ul>
              </span>
            </span>
          </div></td>
          </tr>
			</tbody> 
			</table>
		<div class="control-group button3">
			<label class="control-label  v-top"></label>
			<div class="controls">
				<button type="submit" 
					class="  sui-btn btn-primary">提交
				</button>
			</div>
		</div>
	</form>
</div>
<!--用户密码修改结束 -->        
</body>
</html>
